package lib.bone.admin.event;

import lib.bone.access.module.oss.NepuResearchFileService;
import lib.bone.access.module.oss.event.EntityRemoveEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 文件关联实体移除
 */
@Slf4j
@Service
public class EntityRemoveEventImpl implements EntityRemoveEvent {

    @Autowired
    NepuResearchFileService fileService;

    @Override
    public void removeLinkFiles(String entityId) {
        fileService.deleteEntityLink(entityId);
    }
}
